Replace dialog. It allows to specify several options: ignoreCase makes searching insensitive to case, wordBeginsWith restricts searching to the beginning of words, and wordEndsWith restricts searching to the end of words. wordBeginsWith and wordEndsWith together restrict searching to whole words.
find: ARRAY 256 OF CHAR
The search string.
replace: ARRAY 256 OF CHAR
The replacement string.
ignoreCase: BOOLEAN
Determines whether searching should consider or ignore the case of a letter (small/caps).
wordBeginsWith, wordEndsWith: BOOLEAN
Determine whether searching should be restricted to word beginnings, word endings, or both. The latter case means that a word must match exactly.
These procedures are assigned their global counterparts below.
PROCEDURE FindAgain
Guard: TextCmds.FindAgainGuard
This command searches for the currently selected text string, starting from the end of the selection. If there is no selection, it searches for the most recently used search string of Find and FindAgain, starting from the caret position.
PROCEDURE FindAgainGuard (VAR par: Dialog.Par)
This guard disables the current menu item if there is no current text selection, and if no string was searched previously, with Find or FindAgain.
PROCEDURE FindFirst
Guard: TextCmds.find.find # ""
Searches for the first occurence of the string find.find. If the string is not found, a beep is emitted.
PROCEDURE FocusGuard (VAR par: Dialog.Par)
This guard disables the current menu item if the current focus is not a text view.
PROCEDURE InitFindDialog
This initialization command sets up the TextCmds.find.find interactor field with the current text selection.
PROCEDURE InsertDigitSpace
Guard: PasteCharGuard
Pastes a digit space, i.e. a space which has the same width as a digit. Whether a digit space has this defined width depends on the font used; some fonts have digits of varying widths.
PROCEDURE InsertNBHyphen
Guard: PasteCharGuard
Pastes a non-breaking hyphen.
PROCEDURE InsertNBSpace
Guard: PasteCharGuard
Pastes a non-breaking space, i.e. a space which cannot be used to break a word.
PROCEDURE InsertParagraph
Guard: PasteCharGuard
Pastes a paragraph character.
PROCEDURE InsertRuler
Guard: PasteViewGuard
Pastes a new ruler, which is set up the same way as the ruler in the same text closest above. If there is no ruler above, the values of the default ruler are taken.
PROCEDURE InsertSoftHyphen
Guard: PasteCharGuard
Pastes a soft hyphen, i.e. a hyphen which only becomes visible if it is used to break a word.
PROCEDURE ListAlienViews
Guard: TextCmds.FocusGuard
Opens a text containing the list of alien views contained in this text.
PROCEDURE MakeDefaultAttributes
Guard: TextCmds.SelectionGuard
Sets the focus text's default attributes to the ones of the current selection in this text.
PROCEDURE MakeDefaultRuler
Guard: SingletonGuard
Sets the focus text's default ruler values to the ones of the currently selected ruler in this text.
PROCEDURE Replace
Guard:
Replace the previously found occurence of the search string (TextCmds.find.find) by a replacement string (TextCmds.find.replace).
PROCEDURE ReplaceAll
Guard:
Replace all search strings (TextCmds.find.find) by a replacement string (TextCmds.find.replace), starting from the caret position to the end of the text.
PROCEDURE ReplaceAndFindNext
Guard:
Replace the previously found occurence of the search string (TextCmds.find.find) by a replacement string (TextCmds.find.replace). Afterwards, try to find the next occurence of the search string.
PROCEDURE SelectionGuard (VAR par: Dialog.Par)
This guard disables the current menu item if the current focus is not a text view or doesn't contain a selection.
PROCEDURE ShiftLeft
Guard: TextCmds.SelectionGuard
This command removes one tab character from the white space at the beginning of each line spanned by the current selection.
PROCEDURE ShiftRight
Guard: TextCmds.SelectionGuard
This command inserts one tab character from the white space at the beginning of each line spanned by the current selection.
PROCEDURE Subscript
Guard: TextCmds.SelectionGuard
This command moves the selected text up vertically, into a superscript position.
PROCEDURE Superscript
Guard: TextCmds.SelectionGuard
This command moves the selected text down vertically, into a subscript position.
PROCEDURE ToggleMarks
Guard: TextCmds.ToggleMarksGuard
This command makes text rulers and paragraph characters visible if they aren't, and hides them if they are.
PROCEDURE ToggleMarksGuard (VAR par: Dialog.Par)
This guard disables the current menu item if the current focus isn't a text view. Furthermore it sets up the correct string of the item (Show